package com.example.demo.utils.excelUtil.bean;

/**
 * ClassName: Student
 * Description:
 * Author: lxw
 * Date: 2025/7/15 16:20
 * History:
 * <author>          <time>          <version>          <desc>
 * lxw         2025/7/15 16:20   @Version 1.0        描述
 */

import com.example.demo.utils.excelUtil.annotation.ExcelProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 学生
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    public Student(String id, String name, int age, String sex, String grade, String classRoom, String number, String address, String phone, String email, String remark, Date createTime, Date updateTime){
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.grade = grade;
        this.classRoom = classRoom;
        this.number = number;
        this.address = address;
        this.phone = phone;
        this.email = email;
        this.remark = remark;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }


    private String id;
    @ExcelProperties(value = "姓名", index = 1, group = {"用户信息", "基本信息"})
    private String name;
    @ExcelProperties(value = "年龄", index = 2, group = {"用户信息", "基本信息", "隐私"})
    private int age;
    @ExcelProperties(value = "性别", index = 3, group = {"用户信息", "基本信息"}, dicData = "0:男;1:女")
    private String sex;
    @ExcelProperties(value = "年级", index = 4, group = {"用户信息", "班级信息"})
    private String grade;
    @ExcelProperties(value = "班级", index = 5, group = {"用户信息", "班级信息"})
    private String classRoom;
    @ExcelProperties(value = "学号", index = 6, group = {"用户信息", "班级信息"})
    private String number;
    @ExcelProperties(value = "地址", index = 7, group = {"用户信息", "其他信息"})
    private String address;
    @ExcelProperties(value = "手机", index = 8, group = {"用户信息", "其他信息"})
    private String phone;
    @ExcelProperties(value = "邮箱", index = 9, group = {"用户信息", ""})
    private String email;
    @ExcelProperties(value = "备注", index = 10)
    private String remark;
    @ExcelProperties(value = "创建时间",index = 11, format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ExcelProperties(value = "更新时间",index = 12, format = "yyyy-MM-dd")
    private Date updateTime;
    private String createUser;
    private String updateUser;
    private String deleteFlag;
    private String deleteTime;
    private String deleteUser;
    private String createIp;
    private String updateIp;
    private String deleteIp;
    private String createMac;
    private String updateMac;
    private String deleteMac;
    private String createDevice;
    private String updateDevice;
    private String deleteDevice;
    private String createOs;
    private String updateOs;
    private String deleteOs;

}
